package org.dousb.doujcodesandbox.security;


import java.security.Permission;

/**
 * DenySecurityManager
 * 禁用所有安全管理器
 * @author 豆沙包
 * @version 1.0
 * @since 2025-11-02  21:02
 */
public class DenySecurityManager extends SecurityManager {

    /**
     * 禁止所有权限
     * @param perm   the requested permission.
     */
    @Override
    public void checkPermission(Permission perm) {
        throw new SecurityException("默认禁用任何权限");
    }
        // do nothing

}